package com.dly.blog.config;

import io.swagger.v3.oas.models.OpenAPI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.swagger.v3.oas.models.info.Info;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/21 10:17
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("Blog Swagger接口列表")
                        .version("1.0")
                        .description( "blog相关接口"));
    }
}
